package com.sinosoft.ebusiness.docment;


import com.bugull.mongo.SimpleEntity;
import com.bugull.mongo.annotations.*;

import java.util.Date;

/** 
* @ClassName: NspExceptionLog 
* @Description: TODO(记录接口异常的日志统计。实体类) 
* @author tians 
* @date 2016-10-26 下午3:28:32 
*  
*/
@Entity
@SuppressWarnings("serial")
@EnsureIndex("{transNo:1,cooperateCode:1,logTime:-1},{orderNo:1,vin:1}")
public class NspExceptionLog extends SimpleEntity {

	private String transNo;// 接口名称
	private String cooperateCode;// 合作代码
	private String orderNo;// 订单号
	private String vin;// 车架号
	private String request;// 请求报文
	private Date logTime;// 记录时间
	private String exceptionInfo;// 异常信息定位

	public NspExceptionLog() {
	}


	public String getTransNo() {
		return transNo;
	}

	public void setTransNo(String transNo) {
		this.transNo = transNo;
	}

	public String getCooperateCode() {
		return cooperateCode;
	}

	public void setCooperateCode(String cooperateCode) {
		this.cooperateCode = cooperateCode;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getVin() {
		return vin;
	}

	public void setVin(String vin) {
		this.vin = vin;
	}

	public String getRequest() {
		return request;
	}

	public void setRequest(String request) {
		this.request = request;
	}

	public Date getLogTime() {
		return logTime;
	}

	public void setLogTime(Date logTime) {
		this.logTime = logTime;
	}

	public String getExceptionInfo() {
		return exceptionInfo;
	}

	public void setExceptionInfo(String exceptionInfo) {
		this.exceptionInfo = exceptionInfo;
	}

	@Override
	public String toString() {
		return "NspExceptionLog{" +
				"transNo='" + transNo + '\'' +
				", cooperateCode='" + cooperateCode + '\'' +
				", orderNo='" + orderNo + '\'' +
				", vin='" + vin + '\'' +
				", request='" + request + '\'' +
				", logTime=" + logTime +
				", exceptionInfo='" + exceptionInfo + '\'' +
				'}';
	}
}
